package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 产品
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_product")
@Data
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;



    /**
     * 产品编码
     */
    @TableField("product_code")
    private String productCode;

    /**
     * 产品标题
     */
    @TableField("title")
    private String title;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 物料数组
     */
    @TableField("materiels")
    private String materiels;

    /**
     * 养殖场ID
     */
    @TableField("farm_id")
    private Integer farmId;
    /**
     * 养殖池
     */
    @TableField("pood_id")
    private Integer poodId;

    /**
     * 数量
     */
    @TableField("number")
    private Integer number;
    /**
     * 去处
     */
    @TableField(value = "target")
    private Integer target;

    @TableField(value = "unit")
    private String unit;
    /**
     * 价格
     */
    @TableField("price")
    private Double price;

    /**
     * 重量
     */
    @TableField(value = "weight")
    private Double weight;

    /**
     * 生产日期
     */
    @TableField("product_time")
    private Date productTime;

    /**
     * 创建日期
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新日期
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


}
